package com.nuoniu.sibanyun.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 行政区划
 * </p>
 *
 * @author baiqiang
 * @since 2020-06-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_area")
@ApiModel(value="SysArea对象", description="行政区划")
public class SysArea extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "区域编码")
    @TableField("area_code")
    private Integer areaCode;

    @ApiModelProperty(value = "父级编号")
    @TableField("parent_code")
    private Integer parentCode;

    @ApiModelProperty(value = "所有父级编号")
    @TableField("parent_codes")
    private String parentCodes;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "公司名称")
    @TableField("company_name")
    private String companyName;

    @ApiModelProperty(value = "本级排序号（升序）")
    @TableField("tree_sort")
    private BigDecimal treeSort;

    @ApiModelProperty(value = "所有级别排序号")
    @TableField("tree_sorts")
    private String treeSorts;

    @ApiModelProperty(value = "是否最末级")
    @TableField("tree_leaf")
    private Boolean treeLeaf;

    @ApiModelProperty(value = "层次级别")
    @TableField("tree_level")
    private Integer treeLevel;

    @ApiModelProperty(value = "全节点名")
    @TableField("tree_names")
    private String treeNames;

    @ApiModelProperty(value = "区域名称")
    @TableField("area_name")
    private String areaName;

    @ApiModelProperty(value = "区域类型")
    @TableField("area_type")
    private String areaType;

    @ApiModelProperty(value = "状态（0正常 1删除 2停用）")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "是否有修改(0:false 1:true)")
    @TableField("is_update")
    private Boolean isUpdate;

    @ApiModelProperty(value = "拼音码")
    @TableField("pym")
    private String pym;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private Integer createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private String createDate;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_date")
    private String updateDate;

    @ApiModelProperty(value = "备注信息")
    @TableField("remarks")
    private String remarks;


}
